﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProdUsageMap.aspx.cs" Inherits="UsageTracker.Reporting.Pages.ProdUsageMap" MasterPageFile="~/Site.master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content runat="server" ContentPlaceHolderID="Main">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div>
        <asp:UpdatePanel runat="server" RenderMode="Block" UpdateMode="Always">
            <ContentTemplate>
                <table border="0" id="selectorTab">
                    <tr><td colspan="20">
                            <asp:Label ID="Messages" runat="server" CssClass="msgs"></asp:Label><br/></td></tr>
                    <tr>
                        <td>Select Product:</td>
                        <td class="ctrl">
                            <asp:DropDownList ID="Products" runat="server" OnSelectedIndexChanged="Products_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList></td>
                        <td class="spacer"></td>
                        <td>Select Host:</td>
                        <td class="ctrl">
                            <asp:DropDownList ID="HostNames" runat="server"></asp:DropDownList></td>
                        <td class="spacer"></td>
                        <td>Report Start Date:</td>
                        <td class="ctrl">
                            <asp:TextBox ID="StartDate" runat="server"></asp:TextBox>
                            <ajax:CalendarExtender runat="server" TargetControlID="StartDate" Format="MMMM d, yyyy" PopupButtonID="StartDate" />
                        </td>
                        <td class="spacer"></td>
                        <td>Report End Date:</td>
                        <td class="ctrl">
                            <asp:TextBox ID="EndDate" runat="server"></asp:TextBox>
                            <ajax:CalendarExtender runat="server" TargetControlID="EndDate" Format="MMMM d, yyyy" PopupButtonID="EndDate" />
                        </td>
                        <td class="spacer"></td>
                        <td class="ctrl">
                            <asp:Button ID="Submit" runat="server" Text="Submit" OnClick="Submit_Click" />
                        </td>
                    </tr>
                </table>
                <table border="0">
                    <tr>
                        <td colspan="10"><%=this.UsageDistributionChartPath%></td>
                        <td colspan="10"><%=this.LocationDistributionChartPath%></td>
                    </tr>    
                </table>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Submit" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="Products" EventName="SelectedIndexChanged" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>

